<?php
/*
 * @author Mihail Markitan 
 * @email markitanm@gmail.com
 */

?>

<div class="container" style="min-height: 206px;">
    <div class="heading"><a id="sidebaropengear" onclick="showSideBarSettings();" href="javascript:void(0);"><img width=16" height="16" src="./images/gear.png" alt="" /></a>Information</div>
    <div id="selectedcustomernav" class="inside" style="padding-bottom:0px !important;">
        <input type="text" id="remote-users" style="width:143px !important;display:none"/>
        <div class="selectedcustomer" style="text-align:center;">
            <span id="selectedcustomer">
                <?php if($model!=NULL && !$model->isNewRecord):?>
                    <a href="index.php?r=vendors/vendors/update&id=<?=$model->vendor?>"><?php echo $model->company.' '.$model->firstname?></a>
                    
                <?php else:?>
                    None Selected
                <?php endif?>
                
            </span>

        </div>


    </div>

    <div id="viewactionitems"></div>

    <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation1' style="display:none">&nbsp;</li>
        </ul>

    </div>

    <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <h5 style="padding-left:11px;">Available Actions</h5>
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>
           <?php if(isset($newRecord) && $newRecord==false):?>
            <?php if(isset($showCreate) && $showCreate==true):?>
                 <?php if($model==NULL):?>
                <li><a href='index.php?r=vendors/vendors/create'>Add Vendor</a></li>
                <?php endif;?>
            <?php if($model!=NULL):?>
                <li><a href='index.php?r=vendors/vendorlocations/create/vendor/<?=$model->vendor;?>'>Add Location</a></li>
                <li><a href='index.php?r=vendors/vendordocuments/create/vendor/<?=$model->vendor;?>'>Add Document</a></li>

                <?php endif?>
            <?php endif?>
            <?php else:?>
                <li><a href="javascript:history.go(-1)" >Cancel</a>   </li>
            <?php endif?>
        </ul>
    </div>

    <div id="supportticketsummary"><h5 style="padding-left:21px;">Related Information</h5>
        <div id="supportfilterlinks" style="padding-bottom:20px;">
            <ul>
                <div id="contact-tree"></div>
                <li class="filters">
                    <a id="recentinvoice" href="javascript:toggleTicketParent('recenttoggle','Invoice_Sidebar_RecentToggle');ce.updateTicketsCache();" class="toggle">*</a>
                    <a style="text-decoration:none;" href="javascript:toggleTicketParent('recentinvoice','Invoice_Sidebar_RecentToggle');ce.updateTicketsCache();"><img alt="*" style="position:relative;top:4px;padding-right:1px;" src="./images/folder-small.png" border="0" height="16" width="16">Invoices</a>
                    <ul id="recenttoggle_options" style="display:none;">


                    </ul>

                </li>
                <li class="filters">
                    <a id="filtertoggle" href="javascript:toggleTicketParent('filtertoggle','Ticket_Sidebar_FilterToggle');ce.updateTicketsCache();" class="toggle">*</a>
                    <a style="text-decoration:none;" href="javascript:toggleTicketParent('filtertoggle','Ticket_Sidebar_FilterToggle');ce.updateTicketsCache();"><img alt="*" style="position:relative;top:4px;padding-right:1px;" src="./images/funnel-small.png" border="0" height="16" width="16">Filters</a>
                    <ul id="filtertoggle_options" style="display:none;">
                        <li class="">
                            <span onmouseover="highlightCount('open',true);" onmouseout="highlightCount('open',false);" class="count" id="open_count"><a onclick="processFilterClick('open');" style="cursor:pointer;">2</a></span>

                            <img alt="" class="x-tree-elbow" src="./images/elbow.gif"><a onmouseover="highlightCount('open',true);" onmouseout="highlightCount('open',false);" onclick="processFilterClick('open');" style="cursor:pointer;">Status</a>
                        </li>
                        <li class="">
                            <span onmouseover="highlightCount('awaitingreply',true);" onmouseout="highlightCount('awaitingreply',false);" class="count" id="awaitingreply_count"><a onclick="processFilterClick('awaitingreply');" style="cursor:pointer;">0</a></span>
                            <img alt="" class="x-tree-elbow" src="./images/elbow.gif"><a onmouseover="highlightCount('awaitingreply',true);" onmouseout="highlightCount('awaitingreply',false);" onclick="processFilterClick('awaitingreply');" style="cursor:pointer;">Location</a>
                        </li>
                        <li class="">

                            <span onmouseover="highlightCount('subscribedto',true);" onmouseout="highlightCount('subscribedto',false);" class="count" id="subscribedto_count"><a onclick="processFilterClick('subscribedto');" style="cursor:pointer;">0</a></span>
                            <img alt="" class="x-tree-elbow" src="./images/elbow.gif"><a onmouseover="highlightCount('subscribedto',true);" onmouseout="highlightCount('subscribedto',false);" onclick="processFilterClick('subscribedto');" style="cursor:pointer;">Time</a>
                        </li>
                        <li class="">
                            <span onmouseover="highlightCount('mytickets',true);" onmouseout="highlightCount('mytickets',false);" class="count" id="mytickets_count"><a onclick="processFilterClick('mytickets');" style="cursor:pointer;">2</a></span>
                            <img alt="" class="x-tree-elbow" src="./images/elbow.gif"><a onmouseover="highlightCount('mytickets',true);" onmouseout="highlightCount('mytickets',false);" onclick="processFilterClick('mytickets');" style="cursor:pointer;">Contact Person</a>
                        </li>

                        <li class="">
                            <span onmouseover="highlightCount('unassigned',true);" onmouseout="highlightCount('unassigned',false);" class="count" id="unassigned_count"><a onclick="processFilterClick('unassigned');" style="cursor:pointer;">0</a></span>
                            <img alt="" class="x-tree-elbow" src="./images/elbow.gif"><a onmouseover="highlightCount('unassigned',true);" onmouseout="highlightCount('unassigned',false);" onclick="processFilterClick('unassigned');" style="cursor:pointer;">Invoice</a>
                        </li>

                        <li class="">
                            <img alt="" class="x-tree-elbow" src="./images/elbow.gif"><a ext:qtip="Create New Filter" href="javascript:createNewFilter();"><span style="color:black;text-decoration:underline;">Create New Filter</span></a>
                        </li>
                    </ul>
                </li>

            </ul>
        </div></div>

</div>